package ooday04;

public class Dog extends Animal implements Swim {
    Dog(String name, int age, String color) {
        super(name, age, color);
    }

    void eat() {
        System.out.println("一只" + color + "颜色,今年" + age + "岁了,名字叫" + name + "的狗狗,正在啃骨头");
    }

    public void swim() {
        System.out.println("有一只金毛,名字叫" + name + "的,是" + color + "颜色的,它今年" + age + "岁了,现在正在河边游泳");
    }

    void lookHemo() {
        System.out.println("一只名叫" + name + "的边牧,在家门口看家,它有一身" + color + "的毛毛,它年快" + age + "岁了");
    }


}
